<div class="full-screen">
    <div class="page-group">
        <div class="page page-current">
            <div class="coupon_page_top">
                <a href="<{link app=b2c ctl=wap_member act=index}>"><{img class="coupon_top_return" src="images/icon04.png" app="wap"}></a>
                <div class="coupon_top_text">到货通知</div>
            </div>


            <div class="content-block nomargin nopadding" id="member_notify">
                <{if $notify}>
                <{foreach from=$notify item=goods name=name}>
                <{if $goods.udfimg == 'true'}>
                <{assign var="gimage" value=$goods.thumbnail_pic}>
                <{else}>
                <{assign var="gimage" value=$goods.image_default_id|default:$defaultImage}>
                <{/if}>
                <div class="content-block notify"><!-- start -->
                    <div class="order_box">
                        <div class="orderB">
                            <a href="<{link app=b2c ctl=wap_product arg0=$goods.product_id}>">
                                <div class="notify_img">
                                    <img src="<{$gimage|storager:'s'}>">
                                </div>
                                <div class="orderB_content_one">
                                    <div class="orderB_content_name"><{$goods.name|default:$goods.goods_name}></div>
                                    <div class="orderB_content_type"> <{$goods.spec_info|spec_desc}></div>
                                    <div class="notify_content_type"><{$goods.price.price.price|default:$goods.goods_price|cur_odr}></div>
                                </div>
                            </a>

                            <div class="notify_content_two">
                                <{if $goods.store > 0}>
                                    <div class="notify_content_number">
                                        <a class="notifyCart" url="<{link app=b2c ctl=wap_cart act=add arg0=goods arg1=$goods.goods_id arg2=$goods.product_id arg3=1}>">加入购物车</a>
                                    </div>
                                    <div class="notify_content_money">
                                        <a class="action-delete" url="<{link app=b2c ctl=wap_member act=del_notify arg0=$goods.product_id}>">删除</a>
                                    </div>
                                <{else}>
                                    <div class="notify_content_del">
                                        <a class="action-delete" url="<{link app=b2c ctl=wap_member act=del_notify arg0=$goods.product_id}>">删除</a>
                                    </div>
                                <{/if}>
                            </div>
                            <div class="notify_have">
                                <{if $goods.marketable == 'true'}>
                                <{if $goods.store > 0}>有货<{else}>缺货<{/if}>
                                <{elseif $goods.marketable=='false'}>下架<{else}>
                                已删除
                                <{/if}>

                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
                <{/foreach}>
                <!--<input type="hidden" id="b2c-fav-current-page" value="<{$current_page}>" />-->
                <!--<{wap_pagers data=$pager}>-->

                <{else}>
                <div class="nocoupon_content">
                    <{img class="nocoupon_img" src="images/icon09.png" app="wap"}>
                    <div class="nocoupon_cue"><{t}>无登记缺货的商品<{/t}></div>
                    <div class="nocoupon_button"><a href="./"><{t}>返回首页<{/t}></a></div>
                </div>
                <{/if}>
            </div>
        </div>
    </div>
    <div id="peihuo-pop" class="peihuo-pop" style="display:none;z-index: 65535"></div>
</div>
<script>
    $('.nav_top_bg').hide();
    $('.bar-tab').hide();
    /*加入购物车*/
    $('.notifyCart').on('click',function(e){
        $.post($(this).attr('url'),function(re){
            if(re){
                try{
                    result = $.parseJSON(re);
                    alert(result.error);
                } catch (e){
                    $('#peihuo-pop').html('<div class="confirm"><p class="msg">商品成功加入购物车</p><div class="col2 btn-bar"><div class="col true"><a href="<{link app=b2c ctl=wap_cart act=index}>" class="btn"style="background: #d1bb7f;border: 1px solid #d1bb7f;">进入购物车</a></div><div class="col false"><a href="#" class="btn">留在此页</a></div></div></div><script>$(".false .btn").click(function(){$("#peihuo-pop").hide();});\<\/script>');
                    $('#peihuo-pop').show();
                }

            }
        });
        return false;
    });
    /*删除*/
    $('.action-delete').click(function (e) {
        if (confirm('确定要删除吗？')){
            $.get($(this).attr('url'),function(re){
                var o = JSON.parse(re);
                if(o.success){
                    new Dialog($('#success'),{
                        title: o.success,
                        height:10
                    });
                    setTimeout(function(){location.reload(true)},2000);
                }else{
                    return alert(o.error);
                }
            });
            return false;
        }
    });
</script>